#ifndef WAVE_MDLE_H
#define WAVE_MDLE_H

#include <QWidget>
#include "../open_source_lib/qcustomplot.h"
namespace Ui {
class wave_mdle;
}

class wave_mdle : public QWidget
{
    Q_OBJECT

public:
    explicit wave_mdle(QWidget *parent = nullptr);
    ~wave_mdle();

private slots:
    void on_btn_demo_clicked();

    void on_wave_show_customContextMenuRequested(const QPoint &pos);

private:
    Ui::wave_mdle *ui;
    QVector<double> dat_x;
    QVector<double> dat_y;
private slots:
    void reset_plot_view();
    void clear_plot_data();
    void zoom_plot_xview();
    // --------------------------------------------
    // add data monitor
public slots:
    void recv_data_monitor(quint32,int);
private:
    const int numb_monitor_graph = 8;

};

#endif // WAVE_MDLE_H
